﻿using System;
using SinBiota.Model.Business.PersistenceServices.Interfaces;
using SinBiota.Model.Business.StatisticsServices.Interfaces;

namespace SinBiota.Model.Business.StatisticsServices.Implementation
{
    public class SinbiotaStatistics : ISinbiotaStatistics
    {
        private readonly IProjectPersistenceServices _projectPersistence;
        private readonly IUserPersistenceServices _userPersistence;

        public SinbiotaStatistics(IProjectPersistenceServices projectPersistence, IUserPersistenceServices userPersistence)
        {
            _projectPersistence = projectPersistence;
            _userPersistence = userPersistence;
        }

        public int NumberOfProjects()
        {
            return _projectPersistence.FindAll().Count;
        }

        public int NumberOfUsers()
        {
            return _userPersistence.FindAll().Count;
        }


    }
}